package com.brick.entity;

/**
 * 帐户实体类
 */
public class Account {
    public Account() {}

    public Account(String id, String userId, Double balance, Integer state) {
        this.id = id;
        this.userId = userId;
        this.balance = balance;
        this.state = state;
    }

    private String id;
    private String userId;
    /**
     * 金额
     */
    private Double balance;
    /**
     * 修改金额
     */
    private Double updateBalance;

    public Double getUpdateBalance() {
        return updateBalance;
    }

    public void setUpdateBalance(Double updateBalance) {
        this.updateBalance = updateBalance;
    }

    /**
     * 状态
     */
    private Integer state;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", balance=" + balance +
                ", state=" + state +
                '}';
    }
}
